package threading;

import javafx.scene.transform.Scale;

import java.util.Scanner;

public class Day10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String aa = sc.next();
        int b1,b2,b3,b4,b5=0;
        if(aa.length() <= 4){
            b1 = 5;
        }else if(aa.length() >= 5 && aa.length() <= 7){
            b1 = 10;
        }else{
            b1 = 25;
        }
        int h1 = 0,h2 = 0,h3 = 0,h4 = 0;
        for(int i = 0;i < aa.length();i++){
            if(aa.charAt(i) >= 65 && aa.length() <= 90){
                h1++;
            } else if (aa.charAt(i) >= 97 && aa.length() <= 122) {
                h2++;
            } else if (aa.charAt(i) >= 48 && aa.length() <= 57) {
                h3++;
            }else{
                h4++;
            }
        }
        if(h1 == 0 && h2 == 0){
            b2 = 0;
        }else if((h1 != 0&&h2 == 0)||(h1 == 0&&h2 != 0)){
            b2 = 10;
        }else{
            b2 = 20;
        }
        if(h3 == 0){
            b3 = 0;
        }else if(h3 == 1){
            b3 = 10;
        }else{
            b3 = 25;
        }
        if(h4 == 0){
            b4 = 0;
        }else if(h4 == 1){
            b4 = 10;
        }else{
            b4 = 25;
        }
        if(b2 == 10&&b3!= 0){
            b5 = 2;
        }
        if(b2 == 10&&b3!=0&&b4!=0){
            b5 = 3;
        }
        if(b2 == 20&&b3!=0&&b4!=0){
            b5 = 5;
        }
        int sum=b1+b2+b3+b4+b5;
        if(sum>=90){
            System.out.println("VERT_SECURE");
        } else if (sum >= 80) {
            System.out.println("SECURE");
        } else if (sum >= 70) {
            System.out.println("VERY_STRONG");
        } else if (sum >= 60) {
            System.out.println("STRONG");
        } else if (sum >= 50) {
            System.out.println("AVERAGE");
        } else if (sum >=25) {
            System.out.println("WEAK");
        }else{
            System.out.println("VERY_WEAK");
        }

    }
}
